package com.jxau.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;


import java.util.Date;

public class Comment {
    private Integer id;
    private String comment;
    private Integer articleId;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss ",timezone = "GMT+8")
    private String articleTitle;
    private User sender;
    private User receiver;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss ",timezone = "GMT+8")
    private Date date;
    private Integer isLike;
    private Integer likeNum;
    @JsonIgnore
    private Integer isChildrenComment;
    private String senderId;
    private String receiverId;
    private Integer readFlag;

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", comment='" + comment + '\'' +
                ", articleId=" + articleId +
                ", articleTitle='" + articleTitle + '\'' +
                ", sender=" + sender +
                ", receiver=" + receiver +
                ", date=" + date +
                ", isLike='" + isLike + '\'' +
                ", likeNum=" + likeNum +
                ", isChildrenComment=" + isChildrenComment +
                '}';
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public User getSender() {
        return sender;
    }

    public void setSender(User sender) {
        this.sender = sender;
    }

    public User getReceiver() {
        return receiver;
    }

    public void setReceiver(User receiver) {
        this.receiver = receiver;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getIsChildrenComment() {
        return isChildrenComment;
    }

    public void setIsChildrenComment(Integer isChildrenComment) {
        this.isChildrenComment = isChildrenComment;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public Integer getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(Integer readFlag) {
        this.readFlag = readFlag;
    }
}
